Success Page, Moving functions to user model