Routed edit and show to correct places
Created authFactory with login, register, and logout