starting code for user frontend login