Added some authentication logic and password validation #59