Security - LogIn Session Function

Security method to Log user into session. Comments + testing