Added sessions to handle user login