Added login functionality (incl validation for empty fields)