Added session to detect if a user has already logged in