Migrated to PHP server environment and complete login functionality with mongoDB