Added isAuth helper
Fixed bug with isAuth