Login authentication and httpsessions added.