Added more login validation. To be expanded upon later.