added API auth test method temporary
added basic auth method for User
added phpdoc