Added sign in function
changed code as per code review
Merge pull request #2 from nflavour/issue-0005

Issue #005 Added sign in function