Sorry, but I dont understand the logic. If You hide the button for public (not logged in), then no one will be able to log in. Logged in is something different than registered. User can be registered and not logged in, but he needs a way to log in, because without, why would he be registered?