Fixed indention on createdNow() helper function
Fixed user login authentication