Added login functionality. Changed php files in lib to be indented with spaces... apparently that counts as modifing the file...