Wrote authenticate() in LoginActivity