Create login_action.php

function to handle login page requests