user login working properly now

I should write some user and sessions tests