create login view
create login function