Corrected a bug in the login (anyone could log in OOps)