Creating Login form and its logic