login,logout and registration