fixed registration and login and added password checker