added login and out functions added errors partials added layouts for users