added cloud based login functionality