Added simple php functions for login and homepage