Added some php code to prepare to login feature