Move login checking method to application controller
Handle edit and update of user profile
Tests for user profile page