using angular js for login