Completed login system

Completed the login system basis. Checking the login needs to be
implemented