Added login funcion
;
 added registration