added conditional for signed in users.
fixed a typo