Write PHP for login request