edited login and added register