fixed login, added angular-cookies