create log in action method