Created session function and login function
Login page