procedural login implemented.

login($POSTDATA)
setUserSession($username)
getUserFromUsername($username)