Updated for new log in POST data