Added sign in and sign out functionality along with cookies and remebering users even if they close the browser