Project modified to call custom login endpoint