Continued work on login

Added some basic DAL functions and user validation