Password encryption logic. some changes in login and registration forms.