Simple implementation of authentication for Rails