Authorization

Added authorizations function