this is authenticate module for rails application