Reimplemented auth redirects to use sessions and go back to login page on fail
Fixed old shitcode in user model and implemented bcrypt