added very basic error handling to log in, if either or both fields are left empty then it simply redirects them back to the log in page