Angular JS user authentication using Parse.com BaaS