made loginfunction
Merge pull request #2 from matcho3/login

made loginfunction