Adjusted conditional statement to mitigate non-existent account error messages.
Further testing to come when account management page is added.