User Login completed

Complete user login with session management and "remember me" option which stays active for 2 weeks.
Fixes a logout bug.