Refactor sign in, prepare micropost creation