added appropriate response to api login