implementing registration and login functionalities and also implemented register and login with facebook and twitter