ticket:6 Made separate login page
ticket:6 Added photo file deletion to tests
ticket:6 Added alert when ajax-request return error. Updated view and tests for ajax