Added check to see if user is logged in and if so redirect them back to the homepage
Turns out there was a reason for this after all