Added basic login logic

#2