Login functionality added. Next is registration.