[#71354124] Refactored user_controller and added logged_in? method

Signed-off-by: Steven Magelowitz <steven.magelowitz@gmail.com>