Added some login validation.

Needs work.