added async call to backend for login