fixed permission issues
added complete login/signup functionality