create Authentication functionality without redirections