Secure Registration and login with crypt