updated devise to support logging in directly from privly application bundle