mod rails loggin process