Authentication & authorization functions

read README
Merge pull request #3 from alpialip/loginFunction

Authentication & authorization functions