Added login function in SiteController