fixing login bug so users can have multiple sessions