changed authentication and added "remember me"-functionality